package edu.sctu.wulixia.month6.day20150603;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by user05 on 2015/6/3.
 */
public class TestOne {
    public static void main(String[] args) {
//声明List 并实例化为ArrayList
        List al = new ArrayList();
//使用add（）方法添加元素
        al.add("a");
        al.add("b");
        al.add("c");
        al.add("d");
        for(int i = 0;i<al.size();i++){
            System.out.println(al.get(i));
        }
    }

}
